const mongoose = require("mongoose");
mongoose.connect("mongodb+srv://726459636:qinkai.666@cluster0.tygrz1q.mongodb.net/Shopfront");
const conn = mongoose.connection;
conn.on("open", () => {
  console.log("数据库连接成功");
});
conn.on("error", (error) => {
  console.log("数据库连接失败", error);
});

module.exports = mongoose;
